package edu.sctu.zhengsenwen.month201506.day20150619.Practice;

import javax.swing.*;

/**
 * Created by user15 on 2015/6/19.
 */
public class Man extends AbstractAnimal{

    private boolean ManOrWomen;

    public boolean isManOrWomen(){

        return ManOrWomen;
    }

    public void setManOrWomen(boolean value){

        ManOrWomen = value;
    }

    public Man(){

        setName("明宇");
        setEyeColor("黑色");
        setSound(" "+getName()+" ");
        setAge(25);
        setManOrWomen(true);
    }

    @Override
    public void speed() {

        JOptionPane.showMessageDialog(null,"17里、小时","明宇的行走速度",1);
    }
}
